{{extend 'layout.html'}}

<div id="exploitdb_header">
    <h1>{{=record.f_description}}</h1>
    <div id="exploitdb_details">
        <dl class="dl-horizontal"">
            <dt>Author</dt>
            <dd>{{=record.f_author}}</dd>
            <dt>Platform / Type</dt>
            <dd>{{=record.f_platform}} / {{=record.f_type}}</dd>
            <dt>Release Date</dt>
            <dd>{{=record.f_date}}</dd>
            <dt>Filename</dt>
            <dd>{{=record.f_file}} <a class="btn btn-mini" href="{{=URL('download', args=record.f_eid)}}"><i class="icon-download"></i> Download</a></dd>
        </dl>
    </div>
</div>

<div id="exploitdb_exploit">
    <script type="syntaxhighlighter" class="brush: {{=shJsFile[1]}}; toolbar: false;"><![CDATA[
{{=contents}}]]>
    </script>
</div>

<script type="text/javascript" src="{{=URL('static', 'syntaxhighlighter/scripts/shCore.js')}}"></script>
<script type="text/javascript" src="{{=URL('static/syntaxhighlighter/scripts', shJsFile[0])}}"></script>
<link type="text/css" rel="stylesheet" href="{{=URL('static', 'syntaxhighlighter/styles/shCore.css')}}"/>
<link type="text/css" rel="stylesheet" href="{{=URL('static', 'syntaxhighlighter/styles/shThemeMidnight.css')}}"/>

<script type="text/javascript">
    SyntaxHighlighter.all();
</script>
